package com.sun.spring5.annotations;





public class Person {
    private String name;
    private int age;

    public Person() {
        System.out.println("无参构造器使用.....");
    }

    public Person(String name, int age) {
        System.out.println("全参构造器使用.....");
        this.name = name;
        this.age = age;
    }

    public void init(){
        System.out.println("初始化方法.....");
    }

    public void detory(){
        System.out.println("销毁方法......");
    }
}
